package cn.shuto.liferay.plugin.chart.service.model.impl;

import cn.shuto.liferay.plugin.chart.service.model.Option;
import cn.shuto.liferay.plugin.chart.service.service.OptionLocalServiceUtil;

import com.liferay.portal.kernel.exception.SystemException;

/**
 * The extended model base implementation for the Option service. Represents a row in the &quot;echarts_Option&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link OptionImpl}.
 * </p>
 *
 * @author shixw
 * @see OptionImpl
 * @see cn.shuto.liferay.plugin.chart.service.model.Option
 * @generated
 */
public abstract class OptionBaseImpl extends OptionModelImpl implements Option {
    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this class directly. All methods that expect a option model instance should use the {@link Option} interface instead.
     */
    @Override
    public void persist() throws SystemException {
        if (this.isNew()) {
            OptionLocalServiceUtil.addOption(this);
        } else {
            OptionLocalServiceUtil.updateOption(this);
        }
    }
}
